<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jQuery.js"></script>
    <script>
        //过滤选择器
        $(function(){
            //奇数
           //$("div:even").css("color","red");
           //偶数
           $("div:odd").css("color","yellow");
        })
    </script>
</head>
<body>
    <div >哈哈</div>
    <div >呵呵</div>
    <div >嘻嘻</div>
    <div >嘤嘤</div>
</body>
</html>